﻿//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Common
//  File name:	RouterContext.cs
//  Developer:	Solomatov Igor
//  Created:	15.04.2012
// 
//  -------------------- iSharePoint -------------------- //

namespace Smart.Common.Router
{
	/// <summary>
	/// Router context
	/// </summary>
	public class RouterContext
	{
		/// <summary>
		/// Router service type name
		/// </summary>
		public string ServiceName { get; set; }

		/// <summary>
		/// Router service
		/// </summary>
		public IRouterService Service { get; set; }

		/// <summary>
		/// Active router template
		/// </summary>
		public RouterTemplate Template { get; set; }

		/// <summary>
		/// Requests values
		/// </summary>
		public object[] Values { get; set; }

		/// <summary>
		/// Formatted uri of current router template
		/// </summary>
		public string FormattedUri { get; set; }

		/// <summary>
		/// Router context
		/// </summary>
		public RouterContext(string serviceName)
		{
			ServiceName = serviceName;
		}
	}
}